package com.facedemo.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;

import com.facedemo.R;
import com.facedemo.adapter.PersonAdapter;

//用户注册信息
public class UserInfoActivity extends Activity {
    private Button btn_back;
    private ListView mListView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user_info);
        initView();
    }

    private void initView() {
        mListView = findViewById(R.id.listView_user);
        PersonAdapter adapter = new PersonAdapter(UserInfoActivity.this, R.layout.item_user);
        mListView.setAdapter(adapter);

        btn_back = findViewById(R.id.btn_back);
        btn_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
